﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SIM.Geo.BE;
using SIM.Geo.BL;

namespace SIM.Geo.SE
{
    public class SEAvanceLabor : ISEAvanceLabor
    {
        #region ISEAvanceLabor Members

        public List<AvanceLabor> ListarAvanceLabor()
        {
            try
            {
                return new BLAvanceLabor().ListarAvanceLabor();
            }
            catch (Exception)
            {

                throw;
            }
        }

        public int InsertarAvanceLabor(AvanceLabor AvanceLabor)
        {
            try
            {
                return new BLAvanceLabor().InsertarAvanceLabor(AvanceLabor);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public void ModificarAvanceLabor(AvanceLabor AvanceLabor)
        {
            try
            {
                new BLAvanceLabor().ModificarAvanceLabor(AvanceLabor);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public void EliminarAvanceLabor(int codigoAvanceLabor)
        {
            try
            {
                new BLAvanceLabor().EliminarAvanceLabor(codigoAvanceLabor);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public AvanceLabor ObtenerAvanceLabor(int codigoAvanceLabor)
        {
            try
            {
                return new BLAvanceLabor().ObtenerAvanceLabor(codigoAvanceLabor);
            }
            catch (Exception)
            {

                throw;
            }
        }

        #endregion

        #region ISEAvanceLabor Members


        public List<AvanceLabor> BuscarAvanceLabor(int anio, string mes)
        {
            try
            {
                return new BLAvanceLabor().BuscarAvanceLabor(anio, mes);
            }
            catch (Exception)
            {

                throw;
            }
        }

        #endregion

        #region ISEAvanceLabor Members


        public int GenerarCodigoAvanceLabor(int anio, string mes)
        {
            try
            {
                return new BLAvanceLabor().GenerarCodigoAvanceLabor(anio, mes);
            }
            catch (Exception)
            {

                throw;
            }
        }

        #endregion

    }
}